<?php

/**
 * [PHPFOX_HEADER]
 */
defined('PHPFOX') or exit('No direct script access allowed.');

/**
 *
 *
 */
class Profiles_Component_Ajax_Ajax extends Phpfox_Ajax {

    public function getUserNames(){
        $name = $_GET['term'];
        $usernames = Phpfox::getService('profiles.process')->getUserNames($name);
                
        echo json_encode($usernames);
    }
    public function getInfoUser(){
        $username = Phpfox::getLib('request')->get('username');
        $result = Phpfox::getService('profiles.process')->checkUsername($username);
        echo json_encode($result);
    }
    
    public function checkUsername(){
        
    }
}

?>